﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace SportClubMvc.Model.SportsClubClasses
{
    public class MemberModel
    {
        [Required]
        public int Id { get; set; }

        [Required]
        [StringLength(30, ErrorMessage = "{0} er for langt. Maksimalt {1} tegn.", MinimumLength = 3)]
        [Display(Name = "Navn")]
        public string Name { get; set; }

        [StringLength(1024, ErrorMessage = "{0} er for langt. Maksimalt {1} tegn.")]
        [Display(Name = "Biografi")]
        public string Biography { get; set; }

        [Required]
        [Display(Name = "Kjønn")]
        public Gender Gender { get; set; }

        [Required]
        [Display(Name = "Født")]
        //[DataType(DataType.Date)]
        //[DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true, ConvertEmptyStringToNull = true)]
        public DateTime Birthdate { get; set; }

        public string ImagePath { get; set; }

        [Display(Name = "Klasse")]
        public string SkaterClass { get; set; }
    }
}